<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>角色设置</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="${basePath!}/genius/layui/css/layui.css"
	media="all">
<link rel="stylesheet" href="${basePath!}/genius/style/admin.css"
	media="all">
<style>

  	 .layui-nav .layui-this::after, .layui-nav-bar, .layui-nav-tree .layui-nav-itemed::after {background:rgba(0,0,0,0);}
  	/* 防止下拉框的下拉列表被隐藏---必须设置--- 此样式和表格的样式有冲突 如果表格列数太多 会出现错乱的情况 目前我的解决方法是忽略下拉框的美化渲染 <select lay-ignore> */
      

.layui-fluid {
	height: 900px;
}

.layui-card-body {
	height: 700px;
}

.ew-tree-table-group  .ew-tree-table-box {
	overflow: auto;
	max-height: 700px;
}
</style>
</head>
<body style="overflow: hidden;">
  <div class="layui-row layui-col-space10">
	<div class="layui-fluid layui-col-md3" style="padding-top: 10px;" >
		<div class="layui-card" >

				<table id="LAY-role-list" lay-filter="LAY-role-list"></table>

				<script type="text/html" id="statusTpl">
          {{#  if(d.classflag == '1'){ }}
            		<span  style="color:green">启用</span>
          {{#  } else { }}
            <span  style="color:#ddd">禁用</span>
          {{#  } }}
        </script>
			</div>
		</div>



	<div class="layui-fluid layui-col-md8  "
		style="width: 67.6%; margin-left: -1%;padding-top: 5px;padding-left: 5px;">
		<div class="layui-card" style="padding-top: 10px;">		
			
			<div class="layui-form layuiadmin-card-header-auto"
					style="padding-bottom: 5px;padding-top: 5px;padding-left: 5px;">
					<button class="layui-btn layui-btn-sm layuiadmin-btn-useradmin"
						data-type="add" id="tableInsert">
						<i class="layui-icon">&#xe61f;</i>新增下级类别
					</button>
	
					<button
						class="layui-btn layui-btn-sm layui-btn-danger layuiadmin-btn-useradmin"
						data-type="batchdel" id="tableDelete">
						<i class="layui-icon">&#xe640;</i>删除
					</button>
					<button 
						class="layui-btn layui-btn-sm layui-btn-warm layuiadmin-btn-useradmin"
						 data-type="save"  >
						<i class="layui-icon">&#xe640;</i>保存
					</button>
			</div>
			
			
			
		<form class="layui-form" action="" lay-filter="example" >
					
			<div class="layui-card-body" id="body2">
				<div class="layui-tab layui-tab-card">
					<ul class="layui-tab-title">
						<li class="layui-this">商品类别</li>
					</ul>

					<div class="layui-own-border" id="layui-own-border">
							<div class="mode1">
								<div class="layui-form-item">
									<div class="layui-form_one" >
										<label class="layui-form-label layui-required" >类别编码</label>
										<div class="layui-input-block" id="number1">
											<input type="text" name="classcode" id="classcode"
												lay-verify="required" placeholder="请输入" autocomplete="off"
												readonly class="layui-input " >
												
										</div>					
									</div>									
								
									<div class="layui-form_one"  style="padding-left: 60px;">
										<label class="layui-form-label layui-required" >类别名称</label>
										<div class="layui-input-block">
											<input type="text" name="classname" lay-verify="required"
												id="classname" placeholder="请输入" autocomplete="off"
												 class="layui-input">
										</div>
									</div>
								</div>
								<div class="layui-form-item" >
									<div class="layui-form_one">
										<label class="layui-form-label layui-required" >类别等级</label>
										<div class="layui-input-block" id='dengji'>
											<select id="classgrade" name="classgrade"  lay-verify="common">
											</select>
										</div>
									</div>
								<div class="layui-form_one" style="padding-left: 60px;">
										<label class="layui-form-label layui-required" >上级类别</label>
										<div class="layui-input-block" id='fatherId' >
											<input type="text" name="fatherclassname"  lay-verify="required"
												readonly id="fatherclassname" autocomplete="off" class="layui-input">
											<input type="text" name="fatherclasscode" lay-verify="required" style="display:none"
												readonly id="fatherclasscode"   autocomplete="off" class="layui-input">
										</div>
									</div>
								</div>
								<div class="layui-form-item" >
									<div class="layui-form_one">
										<label class="layui-form-label layui-required" >是否启用</label>
										<div class="layui-input-block">
											<select name="classflag" lay-verify="required" id="classflag">				
												<option value="1">启用</option>
												<option value="0">禁用</option>
											</select>
										</div>
									</div>
									<div class="layui-form_one" style="padding-left: 60px;">
										<label class="layui-form-label layui-required" >主管采购</label>
										<div class="layui-input-block">
											<select name="classpurchase" lay-verify="required"
												id="classpurchase">
											</select>
										</div>
									</div>
								</div>
								<div class="layui-form-item"  lay-filter="labelcheck">								
									<label class="layui-form-label">类别标签</label>								
										<div class="layui-input-block" id="classlabel" >
										<input type="hidden"  name="classlabel"  lay-verify="required" placeholder="" autocomplete="off" class="layui-input" >	
									</div>
								</div>
								<div class="layui-form-item">									
									<label class="layui-form-label">属性</label>						
										<div class="layui-input-block" id="classattribute">			
										<input type="hidden" name="classattribute"  lay-verify="required" placeholder="" autocomplete="off" class="layui-input" >														
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-form_one">
										<label class="layui-form-label">备注</label>
										<div class="layui-input-block">
											<input type="text" name="classremark" lay-verify="common" id="classremark"
												readonly placeholder="" autocomplete="off" class="layui-input">
										</div>
									</div>
								</div>

							</div>
							<div class="layui-form-item layui-hide">
								<input type="button" lay-submit lay-filter="save" value="确认">
							</div>

							<div class="clearfix"></div>
				
					</div>
				</div>
			</div>
		
		</form>
		</div>
	</div>

</div>

	<div class="clearfix"></div>

	<script src="${basePath!}/genius/layui/layui.js"></script>
	<script>
//   layui.config({
//     base: '${basePath!}/genius/' //静态资源所在路径
//     ,host:'${basePath!}'//项目访问路径
//   }).extend({
//     index: 'lib/index' //主入口模块
//     ,role:'/adminmanager/role'
//   }).use(['index','role']);
layui.config({
    base: '${basePath!}/genius/' 
    ,host:'${basePath!}'//项目访问路径
  }).extend({
	index:'lib/index'
    ,edit: 'unite_platform/goods_class/index'
  }).use(['index','edit'], function(){
	 var $ = layui.$
	 ,edit = layui.edit;
	 
	 var parentJson = {};
	 parentJson.classname = "${RequestParameters["classname"]}";
	 parentJson.bakUrl = "${RequestParameters["bakUrl"]}";
	 parentJson.currentMenuId = "${RequestParameters["currentMenuId"]}";
	  
	 edit.setParentJson(parentJson);
  });
  </script>
</body>
</html>